package tools;


public class MyTools {
	
	/**
	 * Checks if a given player is empty or not
	 * @param name
	 * @return
	 */
	public static boolean isEmpty(String name) {
		if(name == null || name.equals("")){
			return true;
		}
		return false;
	}
	
	/**
	 * Generates a random number
	 * @param low
	 * @param high
	 * @return
	 */
	public static int myRandom(int low, int high) {
		high++;
		return (int) (Math.random() * (high - low) + low);
	}
	

}
